﻿<%@ Page Language="C#" MasterPageFile="~/UI/Main/Main.Master" AutoEventWireup="true"
    CodeBehind="SearchMedia.aspx.cs" Inherits="OrganizedIN.UI.Media.SearchMedia" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="middle_tab">
        <div id="middle_tab_title" align="center">
            My Media Interest</div>
        <div class="middle_tab_content">
            <br />
            <h4>
                You can Add, Search, Add Rating, Bookmark (online-media), Upload (offline-media 
                files), Re-Name, Re-Date (Add to a future Date), Delete, Archive, and Share with 
                your Group by clicking on the below icons:</h4>
            <br />
        </div>
        <div id="icon_link_wrapper" align="center">
            <table>
                <tr>
                    <td>
                        <div id="icon_primary_documents" align="center">
                            <a href="AddNewMedia.aspx">
                                <asp:Image ID="Image1" runat="server" ImageUrl="~/images/add_01.jpg" Width="75" Height="75"
                                    border="0" /></a></div>
                    </td>
                    <td>
                        <div id="icon_secondary0" align="center">
                            <a href="SearchMedia.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Search','','images/search_02.jpg',1)">
                                <asp:Image ID="Image2" runat="server" ImageUrl="~/images/search_02.jpg" Width="75"
                                    hieght="75" border="0" /></a></div>
                    </td>
                    <td>
                        <div id="icon_secondary1" align="center">
                            <a href="AddRatingMedia.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Add Rating','','images/add_rating_02.jpg',1)">
                                <asp:Image ID="Image3" runat="server" ImageUrl="~/images/add_rating_01.jpg" Width="75"
                                    Height="75" border="0" /></a></div>
                    </td>
                    <td>
                        <div id="icon_secondary2" align="center">
                            <a href="BookmarkMedia.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Bookmark','','images/bookmark_02.jpg',1)">
                                <asp:Image ID="Image4" runat="server" ImageUrl="~/images/bookmark_01.jpg" Width="75"
                                    Height="75" border="0" /></a></div>
                    </td>
                    <td>
                        <div id="icon_secondary3" align="center">
                            <a href="RenameMedia.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Re-Name','','images/rename_02.jpg',1)">
                                <asp:Image ID="Image5" runat="server" ImageUrl="~/images/rename_01.jpg" Width="75"
                                    Height="75" border="0" /></a></div>
                    </td>
                    <td>
                        <div id="icon_secondary4" align="center">
                            <a href="SubscribeMedia.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Subscribe','','images/subscribe_02.jpg',1)">
                                <asp:Image ID="Image6" runat="server" ImageUrl="~/images/subscribe_01.jpg" Width="75"
                                    Height="75" border="0" /></a></div>
                    </td>
                    <td>
                        <div id="icon_secondary5" align="center">
                            <a href="ShareMedia.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Share with group','','images/share_02.jpg',1)">
                                <asp:Image ID="Image7" runat="server" ImageUrl="~/images/share_01.jpg" Width="75"
                                    Height="75" border="0" /></a></div>
                    </td>
                    <td>
                        <div id="icon_secondary6" align="center">
                            <a href="DeleteMedia.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Delete','','images/delete_02.jpg',1)">
                                <asp:Image ID="Image8" runat="server" ImageUrl="~/images/delete_01.jpg" Width="75"
                                    Height="75" border="0" /></a></div>
                    </td>
                    <td>
                        <div id="icon_secondary7" align="center">
                            <a href="ArchiveMedia.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Archive','','images/archive_02.jpg',1)">
                                <asp:Image ID="Image9" runat="server" ImageUrl="~/images/archive_01.jpg" Width="75"
                                    Height="75" border="0" /></a></div>
                    </td>
                </tr>
            </table>
        </div>
        <br />
        <br />
        <div class="documents_table">
            <table width="97%" border="0" cellspacing="1" cellpadding="5" align="center">
                <tr bgcolor="#d8e1f3">
                    <td class="middle_text1">
                        &nbsp;
                    </td>
                    <td colspan="3" align="left">
                        <h4>
                            <strong>
                                <asp:Label ID="lblTodayDate" runat="server" Text=""></asp:Label>
                                (Today)</strong> ▪ <a href="#"><strong>ReDate</strong></a></h4>
                    </td>
                </tr>
                <tr>
                    <td width="5%" align="center">
                        &nbsp;
                    </td>
                    <td width="41%">
                        <span class="middle_text1"><strong>Search by Title:<br />
                            <asp:TextBox ID="txt_title" runat="server"></asp:TextBox>
                        </strong></span>
                    </td>
                    <td colspan="2" align="left">
                        <span class="middle_text1"><strong>Search by Date:<br />
                            <asp:TextBox ID="txt_date" runat="server"></asp:TextBox>
                            <asp:Image ID="Image15" runat="server" ImageUrl="~/images/organizer_ico.gif" />
                        </strong></span>
                    </td>
                </tr>
                <tr>
                    <td width="5%" align="center">
                        &nbsp;
                    </td>
                    <td width="41%">
                        <span class="middle_text1"><strong>Search by Type (Offline or Online, etc):<br />
                            <asp:TextBox ID="txt_type" runat="server"></asp:TextBox>
                        </strong></span>
                    </td>
                    <td colspan="2" align="left">
                        <span class="middle_text1"><strong>Search by Rating:<br />
                        </strong>
                            <asp:DropDownList ID="ddl_rating" runat="server">
                                <asp:ListItem>5 Star</asp:ListItem>
                                <asp:ListItem>4 Star</asp:ListItem>
                                <asp:ListItem>3 Star</asp:ListItem>
                                <asp:ListItem>2 Star</asp:ListItem>
                                <asp:ListItem>1 Star</asp:ListItem>
                            </asp:DropDownList>
                        </span>
                    </td>
                </tr>
                <tr>
                    <td width="5%" align="center">
                        &nbsp;
                    </td>
                    <td valign="middle">
                        <span class="middle_text1"><strong>Search by Sharing/ Group:</strong><br />
                            <asp:TextBox ID="txt_Share" runat="server"></asp:TextBox></span>
                        <br />
                        <strong></strong>
                    </td>
                    <td colspan="2" valign="middle">
                        <span class="middle_text1"><strong>Search by Subscription:</strong><br />
                            <asp:TextBox ID="txt_Subscription" runat="server"></asp:TextBox></span>
                        <br />
                        <strong></strong>
                    </td>
                </tr>
                <tr>
                    <td width="5%" align="center">
                        &nbsp;
                    </td>
                    <td valign="middle">
                        <span class="middle_text1"><strong>Sort Documents by:</strong><br />
                                 <asp:DropDownList ID="ddl_Sort" runat="server">
                                    <asp:ListItem>Date Entered</asp:ListItem>
                                    <asp:ListItem>Title / Summary</asp:ListItem>
                                    <asp:ListItem>Type (Offline or Online)</asp:ListItem>
                                    <asp:ListItem>Rating</asp:ListItem>
                                    <asp:ListItem>Status</asp:ListItem>
                                </asp:DropDownList>
                                </span>
                                <br />
                    </td>
                    <td colspan="2">
                        <asp:Button ID="btnSearch" runat="server" CssClass="SearchButton" BorderWidth="0"
                            OnClick="btnSearch_Click" />
                    </td>
                </tr>
                <tr bgcolor="#d8e1f3">
                    <td align="left" class="middle_text3" colspan="4">
                        <asp:GridView ID="dgSearchResult" runat="server" AllowPaging="true" AutoGenerateColumns="false"
                            HeaderStyle-ForeColor="Purple" PageSize="5" Width="100%"
                            BorderColor="White" onrowcommand="dgSearchResult_RowCommand" 
                            onpageindexchanging="dgSearchResult_PageIndexChanging">
                            <AlternatingRowStyle BackColor="#d8e1f3"  />
                             <PagerStyle Font-Bold="true"/>
                            <Columns>
                                <asp:TemplateField HeaderStyle-Width="5%" HeaderStyle-ForeColor="Purple" HeaderStyle-BackColor="#c2cee7" >
                                    <ItemTemplate>
                                        <img src="../../images/document_icon.png" longdesc="#" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="Media_Name" HeaderStyle-ForeColor="Purple" HeaderStyle-BackColor="#c2cee7" 
                                    HeaderStyle-Width="25%" HeaderText="Media Name">
                                </asp:BoundField>
                                <asp:TemplateField HeaderStyle-Width="15%" HeaderStyle-ForeColor="Purple"  HeaderText="Action" HeaderStyle-BackColor="#c2cee7">
                                    <ItemTemplate>
                                        <asp:DropDownList ID="ddlAction" runat="server">
                                            <asp:ListItem Value="desabled">Selction your action</asp:ListItem>
                                            <asp:ListItem>Summary</asp:ListItem>
                                            <asp:ListItem>Retrieve (as PDF)</asp:ListItem>
                                            <asp:ListItem>Re-Rate</asp:ListItem>
                                            <asp:ListItem>Share</asp:ListItem>
                                            <asp:ListItem>Re-Name</asp:ListItem>
                                            <asp:ListItem>Archive</asp:ListItem>
                                            <asp:ListItem>Delete</asp:ListItem>
                                        </asp:DropDownList>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="5%" HeaderStyle-ForeColor="Purple" HeaderStyle-BackColor="#c2cee7"  >
                                    <ItemTemplate>
                                        <asp:Button ID="btnGo" runat="server" CssClass="Button3" BorderWidth="0"
                                        CommandArgument ='<%# DataBinder.Eval(Container, "DataItem.Medie_ID") %>' CommandName="GORow" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </td>
                </tr>
            </table>
        </div>
        <br />
    </div>
</asp:Content>
